<?php
namespace Transform;

class GoodsCateTransform extends Transform
{
    public function listview()
    {
        return [
            'allows' => ['cate_id', 'cate_name', 'pic', 'children'],
            'children' => ['trans' => ['name' => 'GoodsCate', 'method' => 'listview']],
        ];
    }

    public function full()
    {
        return [
            'allows' => ['cate_id', 'cate_name', 'goodss', 'pic'],
            'goodss' => ['trans' => ['name' => 'Goods', 'method' => 'simple']]
        ];
    }

    

}
